package cn.zymall.merchant.service;

import cn.zymall.common.model.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MerchantCouponService extends IService<Coupon> {
	List<Coupon> getAllCoupon();

	 void updataCouponStatus(Integer coupon ,Integer couponStatus);

	 Coupon getCouponById(Integer couponId );

	List<Coupon> conditionQuery( String couponName,  Integer goodsType, Byte couponStatus);

	 Coupon getMerchantSingleCoupon(Integer merchantId );

	 List<Coupon> getCouponByMerchantId(Integer merchantId);

	 Integer updateMerchantCouponNum(Integer couponId);
}
